<?php 
header('Content-Type:text/html;charset=gbk');
require_once("db_manage.php");
$linkname0 = $_POST['linkname0'];
$link0 = $_POST['link0'];
$linkname1 = $_POST['linkname1'];
$link1 = $_POST['link1'];
$linkname2 = $_POST['linkname2'];
$link2 = $_POST['link2'];
$linkname3 = $_POST['linkname3'];
$link3 = $_POST['link3'];
$linkname4 = $_POST['linkname4'];
$link4 = $_POST['link4'];
$linkname5 = $_POST['linkname5'];
$link5 = $_POST['link5'];
$linkname6 = $_POST['linkname6'];
$link6 = $_POST['link6'];
$linkname7 = $_POST['linkname7'];
$link7 = $_POST['link7'];

$linkname = array($linkname0,$linkname1,$linkname2,$linkname3,$linkname4,$linkname5,$linkname6,$linkname7);
$link = array($link0,$link1,$link2,$link3,$link4,$link5,$link6,$link7);

//update sister link;
updateSisterLink($linkname, $link);
echo "<script>location.href='main.php';</script>";
?>